//
//  ViewController.m
//  UI06_UIScrollView_UIPageControl
//
//  Created by Scott on 16/5/10.
//  Copyright © 2016年 Scott. All rights reserved.
//

#import "ViewController.h"
#import "PicView.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self createPicView];
}

- (void)createPicView {
    
    PicView *view = [[PicView alloc] initWithFrame:CGRectMake(0, 0, 300, 400)];
    view.center = self.view.center;
    
    [self.view addSubview:view];
    [view release];
    
    UIImage *image1 = [UIImage imageNamed:@"1.jpg"];
    UIImage *image2 = [UIImage imageNamed:@"2.jpg"];
    UIImage *image3 = [UIImage imageNamed:@"3.jpg"];
    
    [view addPictures:@[image1, image2, image3]];
    
    
}








@end
